 /**
 * @file debug.h
 * @brief Debugging related functions and tools
 * @author Robert Kirchgessner
 * @date 2011-02-11
 */

#pragma once
#ifndef _DEBUG_H_ 
#define _DEBUG_H_

#ifdef _ENABLE_DEBUG_
/**
 * @function _debug
 * @brief Low-level debugging function. Use the macro define for debug
 * @param cp_str The format string for the debugging message.
 * @param ... Format arguments
 */
void _debug(unsigned int line, const char *cp_str, ...);

#define debug(A,...) _debug(__LINE__,A, __VA_ARGS__)
#else
#define debug(A,...) {}
#endif

#endif /*_DEBUG_H_*/

